# CMFCore imports
from Products.CMFCore import utils as cmfutils
from Products.CMFCore import DirectoryView

# Archetypes imports
from Products.Archetypes.atapi import *
from Products.Archetypes import listTypes

# EasyArticle imports 
from easyarticle.core.config import *

# Register Directory
DirectoryView.registerDirectory('skins', product_globals)

def initialize(context):
    """
    """
    # allow pdb
    from AccessControl import allow_module
    allow_module("pdb")

    # imports packages and types for registration
    import content

    # initialize portal content
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)
        
    cmfutils.ContentInit(
        PROJECTNAME + ' Content',
        content_types      = content_types,
        permission         = "Add portal content",
        extra_constructors = constructors,
        fti                = ftis,
        ).initialize(context)